﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<HuynhQuangWebsite.Models.HomeAdminListViewModel>" %>
<%@ Import Namespace="THS.HtmlHelpers" %>

  <div class="widget">
        <div class="title"><img src="../../Images/adminSite/icons/dark/users.png" alt="" class="titleIcon" /><h6>Danh sách Video</h6></div>
        <ul class="partners">
        <%if (Model != null)
          {
              if (Model.VideoList != null)
              {
                  foreach (var item in Model.VideoList)
                  {
                  %>
            <li>
            <%if(!String.IsNullOrEmpty(item.VideoPath)){ %>
                 <%=Html.FlashPlayerEmbed(ResolveClientUrl("~/Videos/Flash/Player.swf"), "", 300, 200, new { flashvars = "file=" +item.VideoPath + "&autostart=false", allowscriptaccess = "Always", allowfullscreen = "true" })%>
                 <%} %>
                <div class="pInfo">
                    <a href="<%=Url.Action("Detail",new {id=item.VideoID})%>"><strong><%=item.VideoName%></strong></a>
                    <i><%=item.VideoDesc%></i>
                      <i><%=Html.CheckBox("VideoIsVisible",item.VideoIsVisible)%></i><label for="check1">Cho phép hiển thị</label>
                      	
                </div>
                <div class="pLinks">
                    <a href="#" title="Direct call" class="tipW"><img src="../../Images/adminSite/icons/pSkype.png" alt="" /></a>
                    <a href="#" title="Send an email" class="tipW"><img src="../../Images/adminSite/icons/pEmail.png" alt="" /></a>
                </div>
                <div class="clear"></div>
            </li>
           <%} %>
                
        </ul>
         <div class="divider_line"></div>
					        <div class="pagination wp-pagenavi">
						       
                                    <%=Ajax.Pager(Model.VideoInfo.CurrentPage, Model.VideoInfo.TotalItems, "VideoList", 0, Model.VideoInfo.ItemsPerPage, "Paging")%>
					        </div>	
                            <%}
          } %>
    </div>